Add(TKey,TValue) Method

Summary
Adds an element with the provided key and value to the IDictionary.
Syntax
C#
VB
C++
public virtual void Add( 
   TKey key, 
   TValue value 
) 
  
Public Overloads Overridable Sub Add( _ 
   ByVal key As TKey, _ 
   ByVal value As TValue _ 
)  
public: 
virtual void Add(  
   TKey^ key, 
   TValue^ value 
)  

Parameters

key
The object to use as the key of the element to add.

value
The object to use as the value of the element to add.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionkey is null.
System.ArgumentExceptionAn element with the same key already exists in the IDictionary.
System.NotSupportedExceptionThe IDictionary is read-only.
Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.